Repository navigation
Conversation
aman-ddog
marked this pull request as ready for review
December 2, 2026 05:33
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## den-55 #233 +/- ##
==========================================
+ Coverage 81.28% 81.31% +0.02%
==========================================
Files 1111 1111
Lines 390523 391176 +653
Branches 390523 391176 +653
==========================================
+ Hits 317453 318095 +642
- Misses 54448 54460 +12
+ Partials 18622 18621 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Parquet opener currently loads the page index (column index + offset index) right after row-group statistics pruning, and only then loads and applies Bloom filters. If Bloom filters prune every remaining row group, or leave only row groups that statistics already fully match, the page index fetch was wasted: an extra I/O request plus decoding work that pruning never uses. This matters most for selective point lookups (
col = value) on files with Bloom filters, where statistics often keep a row group but Bloom filters remove it.What changed
PruneWithStatistics → LoadBloomFilters → PruneWithBloomFilters → LoadPageIndex? → BuildStream.BuildStream.RowGroupAccessPlanFilter::has_remaining_row_groups()replaces!is_empty()checks, which returnedtruefor access plans whose slots were allSkip.page_index_load_skippedmetric.+56 / −33lines (opener state machine, one row-group filter helper, one metric doc comment).+842lines. They include an I/O-recording reader factory that checks page index byte ranges against Bloom filter byte ranges.Scope & caveats
enable_*settings.Verification
pushdown_filterson and off), Bloom leaves only fully matched row groups, a page index preloaded in cached metadata, page index disabled, Bloom disabled, statistics pruning every row group, an empty file, and an all-Skipaccess plan.cargo fmt --all -- --check: passed.cargo clippy -p datafusion-datasource-parquet --all-targets --all-features -- -D warnings: passed.cargo test -p datafusion-datasource-parquet(withPARQUET_TEST_DATA): 225/225 unit tests passed, 4/4 doctests passed (5 pre-existing ignored doctests).